*******************************************************************************************************************************
*******************************************************************************************************************************
* Code for
* LJZ-2018-003 Public Support for Eugenics
* Stata version 15
* See the survey questionnaire for what the variable names indicate
*******************************************************************************************************************************
*******************************************************************************************************************************

*******************************************************************************************************************************
* Dataset cleanup and information
*******************************************************************************************************************************

tab Finished
sum Durationinseconds, de

* Drop participants with a shared MTurk ID, IP address, or latitude/longitude combination
tab1 dupGEO dupID dupIP
tab LJid if dupID==1 | dupIP==1 | dupGEO==1
sum LJid if dupID==1 | dupIP==1 | dupGEO==1
drop if dupID==1 | dupIP==1 | dupGEO==1
sum LJid 

*******************************************************************************************************************************
* Attention check
*******************************************************************************************************************************

tab Att, mi

*******************************************************************************************************************************
* Recoding
*******************************************************************************************************************************

tab Gpoor, mi
gen Fpoor = .
replace Fpoor = 0.00 if Gpoor=="Much more negatively"
replace Fpoor = 0.25 if Gpoor=="Somewhat more negatively"
replace Fpoor = 0.50 if Gpoor=="As positively as I feel about people in general"
replace Fpoor = 0.75 if Gpoor=="Somewhat more positively"
replace Fpoor = 1.00 if Gpoor=="Much more positively"
tab Gpoor Fpoor, mi

tab Gwealthy, mi
gen Fwealthy = .
replace Fwealthy = 0.00 if Gwealthy=="Much more negatively"
replace Fwealthy = 0.25 if Gwealthy=="Somewhat more negatively"
replace Fwealthy = 0.50 if Gwealthy=="As positively as I feel about people in general"
replace Fwealthy = 0.75 if Gwealthy=="Somewhat more positively"
replace Fwealthy = 1.00 if Gwealthy=="Much more positively"
tab Gwealthy Fwealthy, mi

tab Gunintel, mi
gen Funintel = .
replace Funintel = 0.00 if Gunintel=="Much more negatively"
replace Funintel = 0.25 if Gunintel=="Somewhat more negatively"
replace Funintel = 0.50 if Gunintel=="As positively as I feel about people in general"
replace Funintel = 0.75 if Gunintel=="Somewhat more positively"
replace Funintel = 1.00 if Gunintel=="Much more positively"
tab Gunintel Funintel, mi

tab Gintel, mi
gen Fintel = .
replace Fintel = 0.00 if Gintel=="Much more negatively"
replace Fintel = 0.25 if Gintel=="Somewhat more negatively"
replace Fintel = 0.50 if Gintel=="As positively as I feel about people in general"
replace Fintel = 0.75 if Gintel=="Somewhat more positively"
replace Fintel = 1.00 if Gintel=="Much more positively"
tab Gintel Fintel, mi

tab Gcrime, mi
gen Fcrime = .
replace Fcrime = 0.00 if Gcrime=="Much more negatively"
replace Fcrime = 0.25 if Gcrime=="Somewhat more negatively"
replace Fcrime = 0.50 if Gcrime=="As positively as I feel about people in general"
replace Fcrime = 0.75 if Gcrime=="Somewhat more positively"
replace Fcrime = 1.00 if Gcrime=="Much more positively"
tab Gcrime Fcrime, mi

tab Hpoor, mi
gen HERITpoor = .
replace HERITpoor = 0.00 if Hpoor=="Not at all"
replace HERITpoor = 0.25 if Hpoor=="A small amount"
replace HERITpoor = 0.50 if Hpoor=="A moderate amount"
replace HERITpoor = 0.75 if Hpoor=="A large amount"
replace HERITpoor = 1.00 if Hpoor=="A very large amount"
tab Hpoor HERITpoor, mi

tab Hintel, mi
gen HERITintel = .
replace HERITintel = 0.00 if Hintel=="Not at all"
replace HERITintel = 0.25 if Hintel=="A small amount"
replace HERITintel = 0.50 if Hintel=="A moderate amount"
replace HERITintel = 0.75 if Hintel=="A large amount"
replace HERITintel = 1.00 if Hintel=="A very large amount"
tab Hintel HERITintel, mi

tab Hcrime, mi
gen HERITcrime = .
replace HERITcrime = 0.00 if Hcrime=="Not at all"
replace HERITcrime = 0.25 if Hcrime=="A small amount"
replace HERITcrime = 0.50 if Hcrime=="A moderate amount"
replace HERITcrime = 0.75 if Hcrime=="A large amount"
replace HERITcrime = 1.00 if Hcrime=="A very large amount"
tab Hcrime HERITcrime, mi

tab Evo, mi
gen evolve = .
replace evolve = 0.00 if Evo=="Humans would evolve to be taller than they are now." 
replace evolve = 0.00 if Evo=="Humans would not evolve to be shorter or taller than they are now."
replace evolve = 0.00 if Evo=="Humans would not evolve to be taller or shorter than they are now."
replace evolve = 1.00 if Evo=="Humans would evolve to be shorter than they are now."
tab Evo evolve, mi

tab Ppoor, mi 
gen Epoor = .
replace Epoor = 0.00 if Ppoor=="Encouraging poor people to have more children"
replace Epoor = 0.00 if Ppoor=="Neither of the above"
replace Epoor = 1.00 if Ppoor=="Encouraging poor people to have fewer children"
tab Ppoor Epoor, mi 

tab Pwealthy, mi 
gen Ewealthy = .
replace Ewealthy = 0.00 if Pwealthy=="Encouraging wealthy people to have fewer children"
replace Ewealthy = 0.00 if Pwealthy=="Neither of the above"
replace Ewealthy = 1.00 if Pwealthy=="Encouraging wealthy people to have more children"
replace Ewealthy = 0.00 if Pwealthy==""
tab Pwealthy Ewealthy, mi 

tab Punintel, mi 
gen Eunintel = .
replace Eunintel = 0.00 if Punintel=="Encouraging unintelligent people to have more children"
replace Eunintel = 0.00 if Punintel=="Neither of the above"
replace Eunintel = 1.00 if Punintel=="Encouraging unintelligent people to have fewer children"
tab Punintel Eunintel, mi 

tab Pvintel, mi 
gen Eintel = .
replace Eintel = 0.00 if Pvintel=="Encouraging intelligent people to have fewer children"
replace Eintel = 0.00 if Pvintel=="Neither of the above"
replace Eintel = 1.00 if Pvintel=="Encouraging intelligent people to have more children"
tab Pvintel Eintel, mi 

tab Pcrime, mi 
gen Ecrime = .
replace Ecrime = 0.00 if Pcrime=="Encouraging people who have committed serious crimes to have more children"
replace Ecrime = 0.00 if Pcrime=="Neither of the above"
replace Ecrime = 1.00 if Pcrime=="Encouraging people who have committed serious crimes to have fewer children"
tab Pcrime Ecrime, mi 

tab WC, mi
gen steril = .
replace steril = 0.00 if WC=="Oppose strongly"
replace steril = 0.25 if WC=="Oppose somewhat"
replace steril = 0.50 if WC=="Neither support nor oppose"
replace steril = 0.75 if WC=="Support somewhat"
replace steril = 1.00 if WC=="Support strongly"
tab WC steril, mi

tab DDcollege, mi
gen DDc = .
replace DDc = 0.00 if DDcollege=="Oppose strongly"
replace DDc = 0.25 if DDcollege=="Oppose somewhat"
replace DDc = 0.50 if DDcollege=="Neither support nor oppose"
replace DDc = 0.75 if DDcollege=="Support somewhat"
replace DDc = 1.00 if DDcollege=="Support strongly"
tab DDcollege DDc, mi

tab DDpoor, mi
gen DDp = .
replace DDp = 0.00 if DDpoor=="Oppose strongly"
replace DDp = 0.25 if DDpoor=="Oppose somewhat"
replace DDp = 0.50 if DDpoor=="Neither support nor oppose"
replace DDp = 0.75 if DDpoor=="Support somewhat"
replace DDp = 1.00 if DDpoor=="Support strongly"
tab DDpoor DDp, mi

*******************************************************************************************************************************
* Demographics
*******************************************************************************************************************************

tab D_SEX, mi
gen female = 0
replace female = 1 if D_SEX=="Female"
gen male = 0
replace male = 1 if D_SEX=="Male"
tab D_SEX female, mi
tab D_SEX male, mi

tab D_RAC, mi
gen Rwhite = 0
gen Rblack = 0
gen Rlatino = 0
gen Rasian = 0
replace Rwhite = 1  if D_RAC=="White"
replace Rblack = 1  if D_RAC=="Black"
replace Rlatino = 1 if D_RAC=="Latino"
replace Rasian = 1  if D_RAC=="Asian"
tab D_RAC Rwhite, mi
tab D_RAC Rblack, mi
tab D_RAC Rlatino, mi
tab D_RAC Rasian, mi

tab D_EDU, mi
gen educ = .
replace educ = 0/3 if D_EDU=="High school degree or less"
replace educ = 1/3 if D_EDU=="2-year college degree"
replace educ = 2/3 if D_EDU=="4-year college degree"
replace educ = 3/3 if D_EDU=="More than a 4-year college degree"
tab D_EDU educ, mi

tab D_AGE, mi
gen age = .
replace age = 0/4 if D_AGE=="18 - 29"
replace age = 1/4 if D_AGE=="30 - 39"
replace age = 2/4 if D_AGE=="40 - 49"
replace age = 3/4 if D_AGE=="50 - 59"
replace age = 4/4 if D_AGE=="60 or older"
tab D_AGE age, mi

tab D_PTY, mi
gen DEM = 0
gen GOP = 0
replace DEM = 1 if D_PTY=="Democratic Party"
replace GOP = 1 if D_PTY=="Republican Party"
tab D_PTY DEM, mi
tab D_PTY GOP, mi

tab D_IDE, mi
gen consv01 = .
replace consv01 = 0.00 if D_IDE=="Very liberal"
replace consv01 = 0.25 if D_IDE=="Somewhat liberal"
replace consv01 = 0.50 if D_IDE=="Moderate"
replace consv01 = 0.75 if D_IDE=="Somewhat conservative"
replace consv01 = 1.00 if D_IDE=="Very conservative"
tab D_IDE consv01, mi

*******************************************************************************************************************************
* Missing data report
*******************************************************************************************************************************

tab1 Gpoor Gwealthy Gunintel Gintel Gcrime Hpoor Hintel Hcrime Evo Ppoor Pwealthy Punintel Pvintel  Pcrime WC D_SEX D_RAC D_EDU D_AGE D_PTY D_IDE, mi
tab1 DDcollege if DollaraDay_DO=="DDcollege", mi
tab1 DDpoor if DollaraDay_DO=="DDpoor", mi

*******************************************************************************************************************************
* Figure 1
*******************************************************************************************************************************

ci prop Epoor Ewealthy Eunintel Eintel Ecrime
ci mean steril DDc DDp

* Figure 1 note
tab1 Ppoor Pwealthy Punintel Pvintel Pcrime 

*******************************************************************************************************************************
* Experiment
*******************************************************************************************************************************

ttest DDc==DDp, unp une
ttest DDc==DDp, unp

*******************************************************************************************************************************
* [Appendix A1 Sample Characteristics] 
*******************************************************************************************************************************

tab1 D_SEX D_RAC D_EDU D_AGE D_PTY D_IDE, mi
di (1+4+1+3+3)/436 // Mixed race or None of the above

* Checking demographics for 0-to-1 scaling
tabstat female male Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01, stats(n mean sd min max) columns(statistics) format(%9.2f)

*******************************************************************************************************************************
* [Appendix A2 Selected Descriptive Statistics] 
*******************************************************************************************************************************

tabstat Fpoor Fwealthy Funintel Fintel Fcrime HERITpoor HERITintel HERITcrime evolve Epoor Ewealthy Eunintel Eintel Ecrime steril DDc DDp, stats(n mean sd min max) columns(statistics) format(%9.2f)
tab1 Fpoor Fwealthy Funintel Fintel Fcrime HERITpoor HERITintel HERITcrime evolve Epoor Ewealthy Eunintel Eintel Ecrime steril DDc DDp

*******************************************************************************************************************************
* [Appendix A3 Regression Results for Figure 2 Models] 
*******************************************************************************************************************************

logit Epoor    HERITpoor  Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ewealthy HERITpoor  Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model at the bottom without the Rlatino predictor
logit Eunintel HERITintel Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   HERITintel Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Ewealthy HERITpoor  Fwealthy female Rwhite Rblack         Rasian educ age DEM GOP consv01

*******************************************************************************************************************************
* [Appendix A4 Regression Results for Figure 2 Models but without Partisan Agreement and Ideology Controls]
*******************************************************************************************************************************

logit Epoor    HERITpoor  Fpoor    female Rwhite Rblack Rlatino Rasian educ age
logit Ewealthy HERITpoor  Fwealthy female Rwhite Rblack Rlatino Rasian educ age // see the model at the bottom without the Rlatino predictor
logit Eunintel HERITintel Funintel female Rwhite Rblack Rlatino Rasian educ age
logit Eintel   HERITintel Fintel   female Rwhite Rblack Rlatino Rasian educ age
logit Ecrime   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age
reg   steril   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age

logit Ewealthy HERITpoor  Fwealthy female Rwhite Rblack         Rasian educ age 

*******************************************************************************************************************************
* [Appendix A5 Regression Results Replacing the Perceived Heritability Item with the Height Evolution Item]
*******************************************************************************************************************************

logit Epoor    evolve Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ewealthy evolve Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model at the bottom without the Rlatino predictor
logit Eunintel evolve Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   evolve Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   evolve Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   evolve Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Ewealthy evolve Fwealthy female Rwhite Rblack         Rasian educ age DEM GOP consv01

*******************************************************************************************************************************
* [Appendix A6 Regression Results for Models Varying the Heritability Predictor]
*******************************************************************************************************************************

logit Epoor    HERITpoor  Fpoor female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Epoor    HERITintel Fpoor female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Epoor    HERITcrime Fpoor female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Ewealthy HERITpoor  Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor
logit Ewealthy HERITintel Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor
logit Ewealthy HERITcrime Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor

logit Ewealthy HERITpoor  Fwealthy female Rwhite Rblack         Rasian educ age DEM GOP consv01
logit Ewealthy HERITintel Fwealthy female Rwhite Rblack         Rasian educ age DEM GOP consv01
logit Ewealthy HERITcrime Fwealthy female Rwhite Rblack         Rasian educ age DEM GOP consv01

logit Eunintel HERITpoor  Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eunintel HERITintel Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eunintel HERITcrime Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Eintel   HERITpoor  Fintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   HERITintel Fintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   HERITcrime Fintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Ecrime   HERITpoor  Fcrime female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   HERITintel Fcrime female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   HERITcrime Fcrime female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

reg   steril   HERITpoor  Fcrime female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   HERITintel Fcrime female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   HERITcrime Fcrime female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

*******************************************************************************************************************************
* [Appendix A7 Regression Results for Models Varying the Group Favorability Predictor]
*******************************************************************************************************************************

logit Epoor    HERITpoor Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Epoor    HERITpoor Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Epoor    HERITpoor Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Epoor    HERITpoor Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Epoor    HERITpoor Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Ewealthy HERITpoor Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor
logit Ewealthy HERITpoor Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor
logit Ewealthy HERITpoor Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor
logit Ewealthy HERITpoor Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor
logit Ewealthy HERITpoor Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01 // see the model below without the Rlatino predictor

logit Ewealthy HERITpoor Fpoor    female Rwhite Rblack         Rasian educ age DEM GOP consv01
logit Ewealthy HERITpoor Fwealthy female Rwhite Rblack         Rasian educ age DEM GOP consv01
logit Ewealthy HERITpoor Funintel female Rwhite Rblack         Rasian educ age DEM GOP consv01
logit Ewealthy HERITpoor Fintel   female Rwhite Rblack         Rasian educ age DEM GOP consv01
logit Ewealthy HERITpoor Fcrime   female Rwhite Rblack         Rasian educ age DEM GOP consv01

logit Eunintel HERITintel Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eunintel HERITintel Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eunintel HERITintel Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eunintel HERITintel Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eunintel HERITintel Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Eintel   HERITintel Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   HERITintel Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   HERITintel Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   HERITintel Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Eintel   HERITintel Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

logit Ecrime   HERITcrime Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   HERITcrime Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   HERITcrime Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   HERITcrime Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
logit Ecrime   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

reg   steril   HERITcrime Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   HERITcrime Fwealthy female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   HERITcrime Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   HERITcrime Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01
reg   steril   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01

*******************************************************************************************************************************
* [Appendix A8 Perceived Heritability / Group Feelings Correlations]
*******************************************************************************************************************************

pwcorr HERITpoor Fpoor Fwealthy, sig obs
pwcorr HERITintel Funintel Fintel, sig obs
pwcorr HERITcrime Fcrime, sig obs

*******************************************************************************************************************************
* Figure 2
*******************************************************************************************************************************

estsimp logit Epoor    HERITpoor  Fpoor    female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01, sims(10000)
setx mean
setx HERITpoor 0.000
simqi
setx HERITpoor 0.125
simqi
setx HERITpoor 0.250
simqi
setx HERITpoor 0.375
simqi
setx HERITpoor 0.500
simqi
setx HERITpoor 0.625
simqi
setx HERITpoor 0.750
simqi
setx HERITpoor 0.875
simqi
setx HERITpoor 1.000
simqi
setx mean
setx Fpoor 0.000
simqi
setx Fpoor 0.125
simqi
setx Fpoor 0.250
simqi
setx Fpoor 0.375
simqi
setx Fpoor 0.500
simqi
setx Fpoor 0.625
simqi
setx Fpoor 0.750
simqi
setx Fpoor 0.875
simqi
setx Fpoor 1.000
simqi
drop b1-b13

estsimp logit Ewealthy HERITpoor  Fwealthy female Rwhite Rblack         Rasian educ age DEM GOP consv01, sims(10000)
setx mean
setx HERITpoor 0.000
simqi
setx HERITpoor 0.125
simqi
setx HERITpoor 0.250
simqi
setx HERITpoor 0.375
simqi
setx HERITpoor 0.500
simqi
setx HERITpoor 0.625
simqi
setx HERITpoor 0.750
simqi
setx HERITpoor 0.875
simqi
setx HERITpoor 1.000
simqi
setx mean
setx Fwealthy 0.000
simqi
setx Fwealthy 0.125
simqi
setx Fwealthy 0.250
simqi
setx Fwealthy 0.375
simqi
setx Fwealthy 0.500
simqi
setx Fwealthy 0.625
simqi
setx Fwealthy 0.750
simqi
setx Fwealthy 0.875
simqi
setx Fwealthy 1.000
simqi
drop b1-b12

estsimp logit Eunintel HERITintel Funintel female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01, sims(10000)
setx mean
setx HERITintel 0.000
simqi
setx HERITintel 0.125
simqi
setx HERITintel 0.250
simqi
setx HERITintel 0.375
simqi
setx HERITintel 0.500
simqi
setx HERITintel 0.625
simqi
setx HERITintel 0.750
simqi
setx HERITintel 0.875
simqi
setx HERITintel 1.000
simqi
setx mean
setx Funintel 0.000
simqi
setx Funintel 0.125
simqi
setx Funintel 0.250
simqi
setx Funintel 0.375
simqi
setx Funintel 0.500
simqi
setx Funintel 0.625
simqi
setx Funintel 0.750
simqi
setx Funintel 0.875
simqi
setx Funintel 1.000
simqi
drop b1-b13

estsimp logit Eintel   HERITintel Fintel   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01, sims(10000)
setx mean
setx HERITintel 0.000
simqi
setx HERITintel 0.125
simqi
setx HERITintel 0.250
simqi
setx HERITintel 0.375
simqi
setx HERITintel 0.500
simqi
setx HERITintel 0.625
simqi
setx HERITintel 0.750
simqi
setx HERITintel 0.875
simqi
setx HERITintel 1.000
simqi
setx mean
setx Fintel 0.000
simqi
setx Fintel 0.125
simqi
setx Fintel 0.250
simqi
setx Fintel 0.375
simqi
setx Fintel 0.500
simqi
setx Fintel 0.625
simqi
setx Fintel 0.750
simqi
setx Fintel 0.875
simqi
setx Fintel 1.000
simqi
drop b1-b13

estsimp logit Ecrime   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01, sims(10000)
setx mean
setx HERITcrime 0.000
simqi
setx HERITcrime 0.125
simqi
setx HERITcrime 0.250
simqi
setx HERITcrime 0.375
simqi
setx HERITcrime 0.500
simqi
setx HERITcrime 0.625
simqi
setx HERITcrime 0.750
simqi
setx HERITcrime 0.875
simqi
setx HERITcrime 1.000
simqi
setx mean
setx Fcrime 0.000
simqi
setx Fcrime 0.125
simqi
setx Fcrime 0.250
simqi
setx Fcrime 0.375
simqi
setx Fcrime 0.500
simqi
setx Fcrime 0.625
simqi
setx Fcrime 0.750
simqi
setx Fcrime 0.875
simqi
setx Fcrime 1.000
simqi
drop b1-b13

estsimp reg   steril   HERITcrime Fcrime   female Rwhite Rblack Rlatino Rasian educ age DEM GOP consv01, sims(10000)
setx mean
setx HERITcrime 0.000
simqi
setx HERITcrime 0.125
simqi
setx HERITcrime 0.250
simqi
setx HERITcrime 0.375
simqi
setx HERITcrime 0.500
simqi
setx HERITcrime 0.625
simqi
setx HERITcrime 0.750
simqi
setx HERITcrime 0.875
simqi
setx HERITcrime 1.000
simqi
setx mean
setx Fcrime 0.000
simqi
setx Fcrime 0.125
simqi
setx Fcrime 0.250
simqi
setx Fcrime 0.375
simqi
setx Fcrime 0.500
simqi
setx Fcrime 0.625
simqi
setx Fcrime 0.750
simqi
setx Fcrime 0.875
simqi
setx Fcrime 1.000
simqi
drop b1-b14
